SftTree/OCX 7.0

SftTreeItem.FirstSibling Property

Softel vdm, Inc.

Returns the item's first sibling.

Syntax       

Get

VB.NET

ItemIndex = object.FirstSibling  As Integer

VB

ItemIndex = object.FirstSibling  As Long

C#.NET

int ItemIndex = object.FirstSibling;

VC++

long ItemIndex = object->FirstSibling;
long ItemIndex = object->GetFirstSibling();

C

HRESULT object->get_FirstSibling(long* ItemIndex);

Delphi

ItemIndex := object.FirstSibling   : Integer;

object

A SftTreeItem object.

ItemIndex

Returns the item's first sibling.  If the item doesn't have a sibling item, -1 is returned.

Comments

The FirstSibling property returns the item's first sibling.

The first sibling of the item is found by scanning towards the beginning of the tree control and locating an item on the same level (Item.Level property) as the item without encountering a parent item.

The Item.LastSibling property can be used to retrieve an item's last sibling.  The Item.NextSibling and Item.PrevSibling properties can be used to retrieve an item's next or previous sibling.

See Also  SftTreeItem Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com